from .base import Base


class Get(Base):
    __CHECK_URL = "/admin/goods/list"
    __GET = "get"

    def check(self, goodsSn=None, name=None, goodsId=None):
        url = self.url + self.__CHECK_URL
        params = {
            "goodsSn": goodsSn,
            "name": name,
            "goodsId": goodsId
        }
        return self.send(self.__GET, url, headers=self.headers, verify=False, params=params)
